<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <title>报表</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/bootstrap-table.css">
    <link rel="stylesheet" href="css/common.css">
    <link href="css/myPage.css" rel="stylesheet" type="text/css" />
    <!--[if lt IE 9]>
      <script src="js/html5shiv.min.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->
</head>

<body>
    <div class="box" style="margin:0 auto;background:#fff;">
        <div class="row buttonbox">
            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
                <div class="input-group">
                    
                    <button id="upload"  class="btn btn-default">导入</button>
                    <a id="downloadReport" class="btn btn-default" href="/export">导出</a>
                    <button id="searchTips" style="margin-left:10px;" class="btn btn-default" onclick="searchTips()">查询条件
                    <span class="glyphicon glyphicon-triangle-top" style="display:none" aria-hidden="true"></span>
                    <span class="glyphicon glyphicon-triangle-bottom"  aria-hidden="true"></span>
                    </button>
                    <button id="resetBUtton" style="margin-left:10px;" class="btn btn-default" onclick="reset()">重置查询条件</button>
                    <button id="buttonDetail" onClick="detail()" class="btn btn-default">详细</button>
                    <button id="buttonDetail" onClick="add()" class="btn btn-default">添加</button>
                    <button id="buttonEnd" onClick="end()" class="btn btn-default">删除</button>
                    <button id="buttonBack" class="btn btn-default" onClick="back()" style="display:none">返回</button>
                    <button id="save" class="btn btn-default" onClick="save()" style="display:none">保存修改</button>
                </div>
            </div>
        </div>
        <!-- 搜索条件输入s -->
        <div class="contentInput" style="display:none">
            <form class="form-horizontal" id="form">
                <div class="form-group Isdisabled">
                    <div class="row">
                        <div class="col-md-6 col-sm-6 col-xs-6  words"><span>报表编码</span></div>
                        <div class="col-md-6 col-sm-6 col-xs-6 words"><span>报表名称</span></div>
                        <div class="col-md-6 col-sm-6 col-xs-6">
                            <input id="code" type="text" class="form-control">
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-6">
                            <input id="name" type="text"  class="form-control">
                        </div>
                    </div>
                </div>
                <div class="form-group ">
                    <div class="row">
                        <div class="col-md-4 col-sm-4 col-xs-4">
                        </div>
                        <div class="col-md-4 col-sm-4 col-xs-4" style="text-align:center;">
                            <button onClick="return  search()" class="btn btn-primary col-md-12 col-sm-12 col-xs-12 ">搜索</button>
                        </div>
                        <div class="col-md-4 col-sm-4 col-xs-4">
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <!-- 搜索条件输入e -->
        <table id="table" class="table text-nowrap"></table>
        <!-- 输入框s -->
        <div class="contentInput2" style="display:none;">
            <form class="form-horizontal" id="form">
                <div class="form-group Isdisabled">
                    <div class="row">
                        <div class="col-md-4 col-sm-4  words"><span>报表编码</span></div>
                        <div class="col-md-4 col-sm-4  words"><span>报表名称</span></div>
                        <div class="col-md-4 col-sm-4  words"><span>报表来源</span></div>
                        <div class="col-md-4 col-sm-4">
                            <input id="CODE"  type="text" class="form-control">
                        </div>
                        <div class="col-md-4 col-sm-4">
                             <input id="NAME"  type="text" class="form-control">
                        </div>
                        <div class="col-md-4 col-sm-4">
                             <input id="SOURCE"  type="text" class="form-control">
                        </div>
                       
                       
                       
                        <div class="col-md-8 col-sm-8  words resizePending"><span>异步任务地址</span></div>
                        <div class="col-md-4 col-sm-4 words resizePending"><span>报表超时时长</span></div>
                       
            
                        <div class="col-md-8 col-sm-8">
                            <input id="ADDRESS"  type="text" class="form-control">
                        </div>
                         <div class="col-md-4 col-sm-4">
                            <input id="OVERTIME"  type="text" class="form-control">
                        </div>
                        
                    </div>
                </div>
        </div>
        <table id="table2"></table>
    </div>
    <!-- 输入框e -->
    <!-- </div> -->
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/bootstrap-table.min.js"></script>
    <script src="js/bootstrap-table-zh-CN.js"></script>
    <script src="js/plugins/layer/layer.min.js"></script>
    <script src="js/moment.min.js"></script>
    <script src="js/layer/layer.js"></script>
    <script src="js/report.js?veision=1.1"></script>
    <script src="js/reportFunction.js?veision=1.1"></script>
    <script src="js/laydate.dev.js"></script>
	<link rel="stylesheet" href="layui/css/layui.css" />
<!-- 	<script src="jquery-3.4.1.min.js" type="text/javascript" charset="utf-8"></script> -->
	<script src="layui/layui.js" type="text/javascript" charset="utf-8"></script>
    <script>
    
	
	layui.use('upload', function(){
		var upload = layui.upload;
		upload.render({
	    	elem: '#upload', //绑定元素
	    	url: '/excel', //上传接口
	    	type: "file",
	    	accept: 'file',
	    	method: 'POST',
	    	done: function(res){
	      		//上传完毕回调
		      	if(res.code == 0){
		      		layer.msg('上传成功', { time: 1000, icon: 1 });
		      	}else{
		      		layer.msg(res.msg);
		      	}
	    	},
		    error: function(){
		      //请求异常回调
		      layer.msg('上传失败');
		    }
	  	});
	});
    
    
</script>
</body>

</html>
